﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="iFrameOverlay.aspx.cs" Inherits="SellerProject.iFrameOverlay" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<%--<head runat="server">
    <title></title>
    <script src="Scripts/jquery.js" type="text/javascript"></script>   


    <script type="text/javascript" language="javascript">

//        $('#MenuTb').find('a[target="mainFrame"]').click(function () {
//            $("#iframeFather").show();
//        });


//        var iframe = $("#imainFrame");
//        if (iframe.attachEvent) {
//            iframe.attachEvent("onload", function () {
//                //                alert("Local iframe is now loaded.");
//                $("#iframeFather").hide();
//            });
//        } else {
//            iframe.onload = function () {
//                $("#iframeFather").hide();
////                alert("Local iframe is now loaded.");
//            };
//        }



    </script>
 
</head>--%>
<%-- <body>
    <form id="form1" runat="server">
       <div id="iframeFather" style="z-index: 949; position:absolute; filter: alpha(opacity=10); width: 100%; height: 100%; top: 0px; left: 0px; display:none;background-color:#000;">
         </div>

        <iframe id="mainFrame" name="mainFrame" src="http://blog.csdn.net/gaofang2009" scrolling="no" frameborder="0" style="width: 100%; margin: 0px 0px 0px 0px; padding-left: 2px;">
         </iframe>


        <div id="MenuTb">
            <a target="mainFrame" href="http://www.wowtaiwan.com.tw">显示百度</a>
         </div>


        <!-- jQuery example: --> 
        <div id='content' style="border:1px solid #C0C0C0; width:800px; height:500px;">Loading...</div> 
        <script type='text/javascript'>
            $("#content").load("www.163.com"); 
        </script> 
    </form>
</body>--%>

<%--<body>
    <div align="center" style="position: absolute; width: 100px; height: 100px; z-index: 1; left:158px; top:17px" id="load"><img src="http://sysimages.tq.cn/images/analysis_images/ajax-loader.gif" alt="" /> loading…</div>
    <iframe style="visibility:hidden" onreadystatechange="stateChangeIE(this)" onload="stateChangeFirefox(this)" name="callframe" id="callframe" frameborder="0" scrolling="no" marginheight="0"></iframe>
        <script type="text/javascript">
            function stateChangeIE(_frame) {
                if (_frame.readyState == "interactive") {//state: loading ,interactive, complete
                    var loader = document.getElementById("load");
                    loader.innerHTML = "";
                    loader.style.display = "none";
                    _frame.style.visibility = "visible";
                }
            }
            function stateChangeFirefox(_frame) {
                var loader = document.getElementById("load");
                loader.innerHTML = "";
                loader.style.display = "none";
                _frame.style.visibility = "visible";
            }
            callframe.location.href = "http://www.fzlgame.com";
        </script>
</body>--%>


<head runat="server">
<title></title>
<link href="Layout/i_sel.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
//            $("#message").text("正在加载..");

//            $("#button").click(function () {
//                $("#message").text("正在加载..");
//                $("#l_iframe").attr("src", "http://www.baidu.com/");
//            });

            var iframe = $("#l_iframe")
//            debugger;
            if (iframe.attachEvent) {
                iframe.attachEvent("onload", function () {
                    alert("Local iframe is now loaded.");
                });
            } else {
                iframe.onload = function () {
                    alert("Local iframe is now loaded.");
                };
            }
        }); 
    </script> 
</head>
<body> 
<%--<div id="button">点击这里测试加载</div>
<span id="message" style="color:green"></span> --%>
<hr/> 
<div id="description" style="height:300px;">
    <div id="overlay"></div>
    <iframe style="display:none;" scrolling="auto" height="100%" frameborder="0" width="100%" id="l_iframe" name="l_iframe" src="http://www.163.com/" marginwidth="0" marginheight="0"></iframe>
</div>
</body> 

</html>
